﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MutFormStudio {
	public partial class SplitPanel : UserControl {
		public SplitPanel() {
			InitializeComponent();
			ButtonSize = 35;
		}
		int button_size = 30;
		public int ButtonSize {
			get { return button_size; }
			set { button_size = value;
				Size = new System.Drawing.Size(3 * value, 3 * value);
				Independent.Size = LeftBTN.Size = DownBTN.Size = UpBTN.Size = RightBTN.Size = new System.Drawing.Size(value, value);
				Independent.Location = new System.Drawing.Point( value, value);
				RightBTN.Location = new System.Drawing.Point(2 * value, value);
				UpBTN.Location = new System.Drawing.Point(value, 0);
				DownBTN.Location = new System.Drawing.Point(value, 2 * value);
				LeftBTN.Location = new System.Drawing.Point(0, value);
			}
		}
	}
}
